package com.example.demo.entity;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 管理员实体类
 */
@Entity(name = "admin")
public class Admin {
    @Id
    private int id;
    private String username;
    private String passwprd;
    private String nickname;
    private String avtar;

    public String getAvtar() {
        return avtar;
    }

    public void setAvtar(String avtar) {
        this.avtar = avtar;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPasswprd() {
        return passwprd;
    }

    public void setPasswprd(String passwprd) {
        this.passwprd = passwprd;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
